package model

import "go.mongodb.org/mongo-driver/bson/primitive"

type UserBasic struct {
	Id                primitive.ObjectID `bson:"_id"`
	Account           string             `bson:"account"`
	Password          string             `bson:"password"`
	Nickname          string             `bson:"nickname"`
	Sex               int                `bson:"sex"`
	Email             string             `bson:"email"`
	Avatar            string             `bson:"avatar"`
	CreatedAt         int64              `bson:"created_at"`
	UpdatedAt         int64              `bson:"updated_at"`
	FriendApplication string             `bson:"friend_application"`
}
type UserLogin struct {
	Id       string `bson:"_id" json:"id"`
	Account  string `bson:"account" json:"account"`
	Password string `bson:"password" json:"-"`
	Email    string `bson:"email" json:"email"`
}
type UserRegister struct {
	Account   string `bson:"account"`
	Password  string `bson:"password"`
	Nickname  string `bson:"nickname"`
	Sex       int    `bson:"sex"`
	Email     string `bson:"email"`
	Avatar    string `bson:"avatar"`
	CreatedAt int64  `bson:"created_at"`
	UpdatedAt int64  `bson:"updated_at"`
}
type UserAddFriend struct {
	Id                primitive.ObjectID `bson:"_id"`
	FriendApplication string             `bson:"friend_application"`
	AddType           int64
}

func (UserRegister) CollectionName() string {
	return "user_basic"
}
func (UserLogin) CollectionName() string {
	return "user_basic"
}
func (UserBasic) CollectionName() string {
	return "user_basic"
}
func (UserAddFriend) CollectionName() string {
	return "user_basic"
}
